﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultMaster.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="MyWeb.Modules.Products.Register" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="boxRight">
        <div class="boxRightTittle">
            <div class="boxMenu">
                <strong>Đăng ký</strong></div>
        </div>
        <div class="comment">
            <i>Để thuận lợi cho việc thực hiện đơn hàng Quý khách vui lòng <span class="spanInfo">đăng nhập</span> nếu đã đăng
                ký hoặc <span class="spanInfo">đăng ký mới</span> nếu chưa đăng ký. Xin cảm ơn ! </i><br />
            <div class="MemberInfo">
                <br /><h1>Thông tin tài khoản</h1>
                <br /><i>Tất cả các trường <span class="spanInfo">(*)</span> là bắt buộc</i>
                <table style="width: 80%;">
                    <tr>
                        <th>Tên đăng nhập: </th>
                        <td>
                            <asp:TextBox ID="txtusername" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="(*)"
                            ControlToValidate="txtusername" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Mật khẩu:
                        </th>
                        <td>
                            <asp:TextBox ID="txtPass" runat="server" Width="250px" TextMode="Password"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtPass" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Nhập lại mật khẩu:
                        </th>
                        <td>
                            <asp:TextBox ID="txtRepass" runat="server" Width="250px" TextMode="Password"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtRepass" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Họ tên:</th>
                        <td><asp:TextBox ID="txtname" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtname" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Ngày sinh:</th>
                        <td><asp:TextBox ID="txtBirthday" runat="server" Width="250px"></asp:TextBox>
                            <asp:CalendarExtender ID="txtBirthday_CalendarExtender" runat="server" 
                                TargetControlID="txtBirthday">
                            </asp:CalendarExtender>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtBirthday" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Email:</th>
                        <td><asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator23"
                                SetFocusOnError="true" Text="(*)"
                                ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                Display="Dynamic" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Số điện thoại:</th>
                        <td><asp:TextBox ID="txtphone" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtphone" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Tên công ty:</th>
                        <td><asp:TextBox ID="txtCompany" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtCompany" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Mã số thuế:</th>
                        <td><asp:TextBox ID="txtTaxCode" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtTaxCode" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Website công ty:</th>
                        <td><asp:TextBox ID="txtWebsite" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtWebsite" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Điện thoại công ty:</th>
                        <td><asp:TextBox ID="txtphoneCompany" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtphoneCompany" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Số Fax:</th>
                        <td><asp:TextBox ID="txtfax" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtfax" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Kế toán trưởng:</th>
                        <td><asp:TextBox ID="txtDirectorName" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtDirectorName" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Số điện thoại kế toán trưởng:</th>
                        <td><asp:TextBox ID="txtDirectorPhone" runat="server" Width="250px"></asp:TextBox></td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="(*)"
                                ControlToValidate="txtDirectorPhone" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th>Mã xác nhận:</th>
                        <td>
                            <cc1:CaptchaControl ID="ccJoin" runat="server" CaptchaBackgroundNoise="none" CaptchaLength="5"
                                CaptchaHeight="35" CaptchaWidth="180" CaptchaLineNoise="none" CaptchaMinTimeout="5"
                                CaptchaMaxTimeout="240" CssClass="contact-capcha"></cc1:CaptchaControl>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            <br />
                            <asp:Label ID="Label1" runat="server" CssClass="messeger"></asp:Label><br />
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="(*)"
                                ControlToValidate="TextBox1" ValidationGroup="save" />
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <asp:Button ID="btSubmit" runat="server" Text="Xác nhận" ValidationGroup="save" 
                                onclick="btSubmit_Click"/>
                            <input name="reset" type="reset" id="reset" value="Làm lại" />
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
